package cn.serenedream.housedecoration.entity;

import jakarta.persistence.*;
import org.springframework.lang.Nullable;

@Entity
public class User {
    @Id
    private Long id;

    @Nullable
    private String name;
    @Nullable
    private String address;
    @Nullable
    private Long mobile;

    private Long spareMobile;

    public User() {
    }

    public User(Long id, Long spareMobile, String name, Long mobile, String address) {
        this.id = id;
        this.spareMobile = spareMobile;
        this.name = name;
        this.mobile = mobile;
        this.address = address;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getMobile() {
        return mobile;
    }

    public void setMobile(Long mobile) {
        this.mobile = mobile;
    }

    public Long getSpareMobile() {
        return spareMobile;
    }

    public void setSpareMobile(Long spareMobile) {
        this.spareMobile = spareMobile;
    }
}
